package router

import (
	"github.com/gin-gonic/gin"
	"monthly-test/internal/api"
)

func UserRouter(r *gin.RouterGroup) {
	user := r.Group("user")
	{
		user.POST("/register", api.Register)
		user.POST("/login", api.Login)
		user.PUT("/update", api.Update)
		user.POST("/addFriend", api.AddFriends)
		user.DELETE("/del", api.DelFriend)
		user.GET("/list", api.FriendList)
	}
}
